home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c++-part1 / 6875 < prev    next >
Encoding:
Text File  |  1996-08-05  |  529 b   |  27 lines

  1. Path: iso.iso.unibas.ch!song
  2. Newsgroups: comp.lang.c++
  3. Subject: Will it be auto-deleted?
  4. Message-ID: <1996Feb20.110314.46035@yogi.urz.unibas.ch>
  5. From: song@iso.iso.unibas.ch (Song Jin)
  6. Date: 20 Feb 96 11:03:14 MET
  7. Nntp-Posting-Host: iso.iso.unibas.ch
  8. X-Newsreader: TIN [version 1.2 PL2]
  9.  
  10. I have a question:
  11.  
  12. void myfunction(void)
  13. {
  14.  double *mypointer = new double[100];
  15.  
  16.  .....
  17.  
  18. }
  19.  
  20. The mypointer and the buffer it pointed will be auto-deleted after returned
  21. from myfunction, am I right?
  22.  
  23. Thanks.
  24.  
  25. Song JIN
  26. song@iso.iso.unibas.ch
  27.